﻿#include <QDebug>
#include "CommunicationFactory.h"
#include "modbusrtu.h"
#include "modbustcpslave.h"
#include "modbustest.h"
#include "modbustcp.h"

CommunicationFactory::CommunicationFactory()
{
    Register<BaseModbus>();
    Register<ModbusTcp>();
    Register<ModbusRtu>();
    Register<ModbusTcpSlave>();
    Register<ModbusTest>();
}

BaseItem *CommunicationFactory::CreateInstance(QString concreteType)
{
    return BaseFactory::CreateInstance(concreteType);
}
